package cn.eonshine.cuba.inf.modular.biz.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.eonshine.base.core.base.controller.BaseController;
import cn.eonshine.cuba.inf.common.http.Message;
import cn.eonshine.cuba.inf.modular.biz.service.IIndustryRealDataService;

@Controller
@RequestMapping("/industryRealData")
public class IndustryRealDataController extends BaseController {

	@Autowired
	private IIndustryRealDataService industryRealDataService;
    @Value("${data.isUpdate:0}")
    private int isUpdate;
    

    @RequestMapping(value = "/list")
    @ResponseBody
    public Message list(@RequestBody Message message) {
    	 return industryRealDataService.queryDataList(message);
    }

    @RequestMapping(value = "/update")
    @ResponseBody
    public Message update(@RequestBody Message message) {
    	return industryRealDataService.changeLsmsUpdate(message, isUpdate);
    }
}
